package com.kj.xuyuan.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.kj.xuyuan.R;
import com.kj.xuyuan.model.InviteDetailsBean;
import com.kj.xuyuan.util.GlideUtils;

public class InviteDetailsAdapter extends BaseQuickAdapter<InviteDetailsBean, BaseViewHolder> {

    public InviteDetailsAdapter() {
        super(R.layout.item_invite);
    }

    @Override
    protected void convert(BaseViewHolder helper, InviteDetailsBean item) {
        ImageView ivHead = helper.getView(R.id.iv_head);
        GlideUtils.loadCircleImage(mContext,item.getAvatar(),ivHead);
        helper.setText(R.id.tv_name,item.getNickname());
        helper.setText(R.id.tv_time,item.getCreatetime());
        helper.setText(R.id.tv_level,item.getLevel());
    }
}
